import Main from "../components/Main";
import About from "../components/Main/about";
import Home from "../components/Main/home";

// children是二级路由,注意二级路由要包裹在一级路由中,依次类推
const routes =[
  {
    path:"/main",
    element:<Main/>,
    children:[
      {
        path:"/main/home",
        element:<Home/>
      },
      {
        path:"/main/about",
        element:<About/>
      },

    ]
  },
 
  {
    path:"*",
    element:<Main/>
  }
]

export default routes